package cn.ssdcc.dkserver.util;

import java.util.List;

public class IsNullUtil {

    public static Boolean IsNullObj(Object obj){
        if (obj == null){
            return true;
        }
        return false;
    }

    public static Boolean IsNotNullObj(Object obj){
        if (obj == null){
            return false;
        }
        return true;
    }

    public static Boolean IsNotNullList(List list){
        if (list == null || list.size() == 0){
            return false;
        }
        return true;
    }

    public static Boolean IsNullList(List list){
        if (list == null || list.size() == 0){
            return true;
        }
        return false;
    }

    public static Boolean IsNullString(String str){
        if (str == null || str.equals("")){
            return true;
        }
        return false;
    }
    public static Boolean IsNotNullString(String str){
        if (str == null || str.equals("")){
            return false;
        }
        return true;
    }

}
